<?php defined('SYSPATH') or die('No direct script access.');

class Model_User extends ORM {
	protected $_has_one = array(
		'profile'    => array(
			'model'			=> 'profile',
			'foreign_key'	=> 'id',
		),
	);
	
	protected $_belongs_to = array(
		'blog'    => array(
		   'model'         => 'blog',
		   'foreign_key' => 'user_id',
		),
	);
}
?>
